package com.xmb.wcapi.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmb.wcapi.entity.U8Duty;
import com.xmb.wcapi.entity.U8Inventory;
import com.xmb.wcapi.mapper.U8InventoryMapper;
import com.xmb.wcapi.service.U8InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class U8InventoryServiceImpl extends ServiceImpl<U8InventoryMapper, U8Inventory> implements U8InventoryService {

    @Autowired
    private U8InventoryMapper inventoryMapper;

    @Override
    public IPage<U8Inventory> selectInfoPage(Page<?> page, String cusCode, String code) {
        return inventoryMapper.selectInfoPage(page,cusCode,code);
    }

    @Override
    public IPage<U8Inventory> selectCusInfoPage(Page<?> page, String cusCode) {
        return inventoryMapper.selectCusInfoPage(page,cusCode);
    }

    @Override
    public U8Duty getU8DutySum() {
        return inventoryMapper.getU8DutySum();
    }

}
